package com.zk.atm.vo;

import java.util.Date;

/**
 * AtmpDeviceTypeChildren entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AtmpDeviceTypeChildren extends BaseVo implements
		java.io.Serializable {

	// Fields

	private String children_device_id;
	private String type_id;
	private String type_code;
	private String type_name;
	private String child_device_name;
	//中文名称,用于界面显示
	private String child_device_name_cn;
	private String child_device_code;
	
	private String remark;
	private String standby_column1;
	private String standby_column2;
	private String standby_column3;
	private Date time_mark; 

	// Constructors

	/** default constructor */
	public AtmpDeviceTypeChildren() {
	}

	public AtmpDeviceTypeChildren(String children_device_id, String type_id,
			String type_code, String type_name, String child_device_name,
			String child_device_code, String standby_column1,
			String standby_column2, String standby_column3, Date time_mark,
			String child_device_name_cn,String remark) {
		super();
		this.children_device_id = children_device_id;
		this.type_id = type_id;
		this.type_code = type_code;
		this.type_name = type_name;
		this.child_device_name = child_device_name;
		this.child_device_code = child_device_code;
		this.standby_column1 = standby_column1;
		this.standby_column2 = standby_column2;
		this.standby_column3 = standby_column3;
		this.time_mark = time_mark;
		this.child_device_name_cn=child_device_name_cn;
		this.remark=remark;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getChild_device_name_cn() {
		return child_device_name_cn;
	}

	public void setChild_device_name_cn(String child_device_name_cn) {
		this.child_device_name_cn = child_device_name_cn;
	}

	public String getChildren_device_id() {
		return children_device_id;
	}

	public void setChildren_device_id(String children_device_id) {
		this.children_device_id = children_device_id;
	}

	public String getType_id() {
		return type_id;
	}

	public void setType_id(String type_id) {
		this.type_id = type_id;
	}

	public String getType_code() {
		return type_code;
	}

	public void setType_code(String type_code) {
		this.type_code = type_code;
	}

	public String getType_name() {
		return type_name;
	}

	public void setType_name(String type_name) {
		this.type_name = type_name;
	}

	public String getChild_device_name() {
		return child_device_name;
	}

	public void setChild_device_name(String child_device_name) {
		this.child_device_name = child_device_name;
	}

	public String getChild_device_code() {
		return child_device_code;
	}

	public void setChild_device_code(String child_device_code) {
		this.child_device_code = child_device_code;
	}

	public String getStandby_column1() {
		return standby_column1;
	}

	public void setStandby_column1(String standby_column1) {
		this.standby_column1 = standby_column1;
	}

	public String getStandby_column2() {
		return standby_column2;
	}

	public void setStandby_column2(String standby_column2) {
		this.standby_column2 = standby_column2;
	}

	public String getStandby_column3() {
		return standby_column3;
	}

	public void setStandby_column3(String standby_column3) {
		this.standby_column3 = standby_column3;
	}

	public Date getTime_mark() {
		return time_mark;
	}

	public void setTime_mark(Date time_mark) {
		this.time_mark = time_mark;
	}
	public String toString(){
		return "[children_device_id ="+ children_device_id
		+",type_id ="+ type_id
		+",type_code ="+ type_code
		+",type_name ="+ type_name
		+",child_device_name ="+ child_device_name
		+",child_device_code ="+ child_device_code
		+",standby_column1 ="+ standby_column1
		+",standby_column2 ="+ standby_column2
		+",standby_column3 ="+ standby_column3
		+",time_mark ="+ getTimeMarkByDate(time_mark)+"]";
	}
	
	public String getTimeMarkByDate(Date time_mark1){
		String date_value="";
		try {
			if(time_mark1==null){
				return date_value;
			}else{
				date_value= time_mark1.toLocaleString();
			}
		} catch (RuntimeException e) {
			e.printStackTrace();
		}
		return date_value;
	}

	
}